{extend name="wap/b2c/base" /}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/memberBalance.css">
<style type="text/css">
.ns-table td{
	width:100%;
}
.ns-lf{
	float:left;
}
.ns-rg{
	color:red;
	font-size:14px;
	float:right;
}
.ns-rg-time{
	font-size:14px;float:right
}
</style>
<script type="text/javascript">
	window.onerror = function() {
		return true;
	}
</script>
{/block}
{block name="goodsHead"}
<section class="head">
	<a class="head_back" onclick="window.history.go(-1)"
		href="javascript:void(0)"><i class="icon-back"></i></a>
	<div class="head-title">我的余额</div>
</section>
{/block}
{block name="main"}
<div id="main" class="detail-main">
	<div class="my-account">
		<div class="account-box">
			<p class="balace">{$sum}</p>
			<p style="font-size: 15px;color: #fff;">余额(元)</p>
		</div>
	</div>
{if condition="$balances['total_count'] neq ''"}		
	<table  class="ns-table">
		{volist name="balances['data']" id="vo"}
		<tr align="center">
			<td style="padding-bottom: 0.2rem;font-size: 16px;">
				<span class="ns-lf" style="color: #444;">{$vo['from_type_name']}</span>
				<span class="ns-rg">{$vo['number']}</span>
			</td>
			<td style="padding-top: 0.2rem;font-size: 14px;color: #888;">
				<span class="ns-lf">{$vo['text']}</span>
				<span class="ns-rg-time">{$vo['create_time']}</span>
			</td> 	
		</tr>
		{/volist}
	</table>
 {else/}
        <div>
            <div class="emptyFrame"> <i class="user_money"></i><span>您暂时还没有余额记录哦！</span> </div>
        </div>
 {/if} 
	
	
</div>
{/block}
{block name="bottom"}{/block}